﻿@using CashFlow.Db.Entity;
@{
    Layout = "~/Views/Shared/_Layout3.cshtml";
    var entity = ViewBag.UserAccountInfo as UserAccountInfoEntity;
    string bankAccountName = "";
    string bank = "";
    string bankCardNo = "";
    string wechatCodePath = "";
    string alipayCodePath = "";
    if (ViewBag.UserAccountInfo != null)
    {
        var userAccountInfo = ViewBag.UserAccountInfo as UserAccountInfoEntity;
        bankAccountName = userAccountInfo.BankAccountName;
        bank = userAccountInfo.Bank;
        bankCardNo = userAccountInfo.BankCardNo;
        wechatCodePath = userAccountInfo.WechatCodePath;
        alipayCodePath = userAccountInfo.AlipayCodePath;
    }
}
<style type="text/css">
    .container {
        padding: 0px 15px;
    }

    .box {
        padding: 15px;
        background-color: #fff;
        border-radius: 15px;
    }

    .box-title {
        font-weight: 700;
        color: #000;
        font-size: 18px;
        padding-bottom: 5px;
        text-align: center;
    }

    .box-item {
        padding: 10px 0;
        display: flex;
        align-items: center;
        color: #000;
        border-bottom: 1px solid #efefef;
        font-size: 16px;
        position: relative;
    }

    .box-item-label {
        color: #999;
        width: 120px;
        text-align: right;
    }

    .input1 {
        margin-left: 15px;
    }

    .bigImage {
        width: 95%;
        height: 80%;
        padding: 10px;
        padding-right: 0px;
        overflow: hidden;
    }

        .bigImage img {
            width: 100%;
            height: 100%;
        }
</style>
<form class="layui-form">
    <div class="container">
        <div class="box">
            <div class="box-title">账户信息</div>
            <div class="box-item">
                <div class="box-item-label">微信收款码:</div>
                <button type="button" class="layui-btn" id="upload-wechat"
                        style="height: 30px; line-height: 30px; margin-left: 10px;">
                    <i class="layui-icon layui-icon-upload"></i> 上传
                </button>
                <input type="button" class="layui-btn layui-btn-danger" id="viewWechatImage"
                       style="height: 30px; line-height: 30px; margin-left: 10px;" value="查看" />
            </div>
            <div class="box-item">
                <div class="box-item-label">支付宝收款码:</div>
                <button type="button" class="layui-btn" id="upload-alipay"
                        style="height: 30px; line-height: 30px; margin-left: 10px;">
                    <i class="layui-icon layui-icon-upload"></i> 上传
                </button>
                <input type="button" class="layui-btn layui-btn-danger" id="viewAlipayImage"
                       style="height: 30px; line-height: 30px; margin-left: 10px;" value="查看" />
            </div>
            <div class="box-item">
                <div class="box-item-label">银行卡开户名:</div>
                <input type="text" class="layui-input" maxlength="10" id="BankAccountName" value="@bankAccountName"
                       style="height: 30px; line-height: 30px; margin-left: 10px; width: 100px;" />
            </div>
            <div class="box-item">
                <div class="box-item-label">银行卡开户行:</div>
                <input type="text" class="layui-input" maxlength="50" id="BankName" value="@bank"
                       style="height: 30px; line-height: 30px; margin-left: 10px; width: 170px;" />
            </div>
            <div class="box-item">
                <div class="box-item-label">银行卡卡号:</div>
                <input type="text" class="layui-input" maxlength="30" id="BankCardNo" value="@bankCardNo"
                       style="height: 30px; line-height: 30px; margin-left: 10px; width: 170px;" />
            </div>
        </div>
    </div>
    <div style="width: 90%; margin: 0px auto;">
        <button type="submit" class="layui-btn layui-btn-fluid layui-btn-radius" lay-submit lay-filter="filter-saveAccountInfo"
                style="font-size: 16px; height: 44px;">
            保存
        </button>
    </div>
</form>
<div class="pop">
    <img src="" />
</div>
<input type="hidden" id="_wechatPath" value="@wechatCodePath" />
<input type="hidden" id="_alipayPath" value="@alipayCodePath" />
<script type="text/javascript" src="~/Static/Js/updateuseraccountinfo.js?rand=012"></script>